package com.suxin.websocket.handler;


import com.suxin.websocket.model.BaseModel;

/**
 * @author Tang
 * @classname Handler
 * @description [ 业务数据处理 ]
 * @date 2022/3/24 14:23
 */
public interface Handler<T extends BaseModel> {

    /**
     * handler
     * @param data
     */
    public void handler(T data);

    /**
     * 是否支持
     * @param date
     * @return
     */
    default boolean isSupport(T date) {
        return true;
    }

}
